<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="keywords" content="关键字">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="descrition" content="网页描述">
    <link rel="stylesheet" href="/code/admin/lib/css/bootstrap.css">
    <script src="/code/admin/lib/js/bootstrap.bundle.js"></script>
    <link rel="stylesheet" href="index.css">
    <link href="https://unpkg.com/@wangeditor/editor@latest/dist/css/style.css" rel="stylesheet">
    <style>
        #editor—wrapper {
            border: 1px solid #ccc;
            z-index: 20;
            /* 按需定义 */
        }

        #toolbar-container {
            border-bottom: 1px solid #ccc;
        }

        #editor-container {
            height: 500px;
        }
    </style>
    <title>创建新闻</title>

    <head>

    <body>
        <div class="main">
            <div class="topbar">
            </div>
            <div class="box">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-2 sidemenu">
                        </div>
                        <div class="col-10">
                            <div class="content">
                                <nav aria-label="breadcrumb">
                                    <ol class="breadcrumb">
                                        <li class="breadcrumb-item active" aria-current="page"><b>新闻管理</b>/创建新闻</li>
                                    </ol>
                                </nav>
                                <form action="" id="CreateNewsForm">
                                    <span class="subtitle">标题</span>
                                    <input type="text" placeholder="请输入标题" id="Newstitle" required>
                                    <span class="subtitle">内容</span>
                                    <div id="editor—wrapper">
                                        <div id="toolbar-container"><!-- 工具栏 --></div>
                                        <div id="editor-container"><!-- 编辑器 --></div>
                                    </div>
                                    <span class="subtitle">类别</span>
                                    <select name="" id="category" required>
                                        <option value="最新动态">最新动态</option>
                                        <option value="典型案例">典型案例</option>
                                        <option value="通知公告">通知公告</option>
                                    </select>
                                    <span class="subtitle">封面图片</span>
                                    <input type="file" id="CoverImage" required>
                                    <button type="submit" class="btn btn-primary" id="CreateNewsBtn">创建新闻</button>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="index.js" type="module">
        </script>
        <script src="https://unpkg.com/@wangeditor/editor@latest/dist/index.js"></script>
        </div>
    </body>

</html>